package org.csu.demo.service;

import org.csu.demo.common.CommonResponse;
import org.csu.demo.domain.AddToCart;
import org.csu.demo.domain.ConfirmOrder;
import org.csu.demo.domain.RecordVo;
import org.csu.demo.domain.ViewItem;

import java.util.List;

public interface RecordService {
    /*浏览了哪些商品、将商品添加进购物车、生成订单等。*/
    void recordViewItem(String username,String itemId,String productId);
    void recordAddToCart(String username,String itemId,int quantity);
    void recordConfirmOrder(String username,int orderId);

    List<ConfirmOrder> getConfirmOrderListByUsername(String username);
    List<AddToCart> getAddToCartListByUsername(String username);
    List<ViewItem> getViewItemListByUsername(String username);
    CommonResponse<RecordVo> getAllRecords(String username);
}
